<html>
<script>
"use strict";
function test(){
	Object.defineProperty(window, "_name", {
    	get : function(){ console.log("gett is called ") },
    	set : function(newValue){ 
    		debugger;
    		console.log("_name is filled!!!!");
    	},
    	enumerable : true,
    	configurable : true
	});

	for( var i = 0; i < 2; i++) 
		console.log(i);

    window._name = "2";
};

test();
</script>